package com.md.api.dao;

import com.md.api.entity.UserMessage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UserMessageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserMessage record);

    UserMessage getDetail(Long id);


    int read(Long id);

    List<UserMessage> getByUserId(@Param("userId") String userId);

}